import type { ISearchConfig } from '@/components/types'

export const searchConfig: ISearchConfig = {
  pageName: 'company',
  category: 'crm',

  propItems: [
    {
      type: 'input',
      label: '公司名称',
      prop: 'name',
      placeholder: '请输入公司名称',
      isClearable: true
    },
    {
      type: 'input',
      label: '法人代表',
      prop: 'legalPerson',
      placeholder: '请输入法人代表姓名',
      isClearable: true
    },
    {
      type: 'input',
      label: '银行账号',
      prop: 'bankAccount',
      placeholder: '请输入公司开户银行账号',
      isClearable: true
    },
    {
      type: 'select',
      label: '状态',
      prop: 'status',
      isClearable: true,
      options: [
        {
          label: '启用',
          value: '1'
        },
        {
          label: '禁用',
          value: '0'
        }
      ]
    },
    {
      type: 'date-picker',
      label: '创建时间',
      prop: 'dateRange'
    }
  ]
}
